home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
eot_splash_adjuster.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
2KB
|
85 lines
/*
* EOT_Splash_Adjuster.ifx
* Written by Gerald Bonnstetter
*
* EOT Splash Sequence Effect.
*
* Inputs:
* Word(Arg(1),1) = Frame number (1 - N)
* Word(Arg(1),2) = Main filename ("-" if not specified)
* Word(Arg(1),3) = Swap filename ("-" if not specified)
* Word(Arg(1),4) = Sequence number (?)
* Word(Arg(1),5) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
framenum = Word(Arg(1),1)
mainname = Word(Arg(1),2)
swapname = Word(Arg(1),3)
seqnum = Word(Arg(1),4)
framemax = Word(Arg(1),5)
base = 'Autofx_Splash_'
lpath = GETCLIP(base||'Path')
lfile = GETCLIP(base||'File')
incr = GETCLIP(base||'Incr')
step = GETCLIP(base||'StepSize')
seed = GETCLIP(base||'Seed')
lightsrc = GETCLIP(base||'LightSource')
highlt = GETCLIP(base||'Highlight')
density = GETCLIP(base||'Density')
height = GETCLIP(base||'Height')
edge = GETCLIP(base||'Edge')
smooth = GETCLIP(base||'Smoothing')
antial = GETCLIP(base||'AntiAl')
increment = GETCLIP(base||'Increment')
IF datatype(framemax, 'N') = 1 THEN DO
increment = incr + framenum * step
END
ELSE DO
increment = increment + step
END
temp = 'Increment '|| increment || ' Seed ' || seed
temp = temp || ' Light_Source ' || lightsrc || ' Highlight ' || highlt
temp = temp || ' Density ' || density || ' Height ' || height
SELECT
WHEN edge = 0 THEN temp = temp || ' Wraparound '
WHEN edge = 1 THEN temp = temp || ' Bounce '
OTHERWISE temp = temp || ' Bounce '
END
temp = temp || ' Smoothing ' || smooth
SELECT
WHEN antial = 0 THEN temp = temp || ' Antialiase_Off '
WHEN antial = 1 THEN temp = temp || ' Antialiase_On '
OTHERWISE temp = temp || ' Antialiase_Off '
END
temp = temp || ' File ' || lpath || '/' || lfile
Hook Splash temp
CALL SETCLIP(base||'Increment', increment)
rc = 0
EXIT rc